﻿namespace msilgc.common {
    public static class MsDotNetSettings {
        public static string DotNet35Folder {
            get {
                return EnvironmentFinder.GetValueTryDefault(
                    "DotNetHome",
                    new[]
                    {
                        @"C:\windows\Microsoft.NET\Framework64\v4.0.30319",
                        @"C:\windows\Microsoft.NET\Framework\v4.0.30319",
                        @"C:\windows\Microsoft.NET\Framework64\v3.5",
                        @"C:\Windows\Microsoft.NET\Framework\v3.5",
                    });
            }
        }

        public static string WindowsSdkFolder {
            get {

                return EnvironmentFinder.GetValueTryDefault("WindowsSdkDir",
                                                            new[]
                                                            {
                                                                @"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64",
                                                                @"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib",
                                                                @"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64",
                                                                @"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib",
                                                                @"C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64",
                                                                @"C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86",
                                                            });
            }
        }

        public static string VisualStudioInstallFolder {
            get {
                return EnvironmentFinder.GetValueTryDefault(
                    "VSINSTALLDIR",
                    new[]
                    {
                        @"C:\Program Files (x86)\Microsoft Visual Studio 10.0",
                        @"C:\Program Files (x86)\Microsoft Visual Studio 9.0",
                        @"C:\Program Files (x86)\Microsoft Visual Studio 11.0",
                    });
            }
        }

        public static string VisualCppInstallFolder {
            get {
                return EnvironmentFinder.GetValueTryDefault(
                    "VCINSTALLDIR",
                    new[]
                    {
                        @"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC",
                        @"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC",
                        @"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC",
                    });
            }
        }


        public static string MicrosoftCPPPath {
            get {
                return EnvironmentFinder.GetValueTryDefault(
                    "MSVCPP_BIN_PATH",
                    new[]
                    {
                        @"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64",
                        @"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64",
                        @"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64",
                    });
            }
        }

        public static string MicrosoftIncPath {
            get {
                return EnvironmentFinder.GetValueTryDefault(
                    "MSVCPP_INC_PATH",
                    new[]
                    {
                        @"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include",
                        @"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include",
                        @"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include",
                    });
            }
        }
    }
}